home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
The Essential Home & Business Collection
/
The Essential Home & Business Collection.iso
/
27
/
7
/
5
/
DEMO.BAT
< prev
next >
Wrap
DOS Batch File
|
1991-05-31
|
2KB
|
65 lines
ECHO OFF
CLS
ECHO ┌──────────────────────────────────────┐
ECHO │ DEMO.BAT │
ECHO │ DEMONSTRATION OF GRABBER OFFSPRING │
ECHO │ BATCH FILE CAPABILITIES │
ECHO ├──────────────────────────────────────┤
ECHO │ PRESS ANY KEY TO CONTINUE, │
ECHO │ OR CTRL-C TO ABORT . . . │
ECHO └──────────────────────────────────────┘
ECHO
PAUSE > NUL
CLS
:DEMO0
DEMO0 /K12345 /F ; keylist is 1,2,3,4,5 and don't clear screen on exit
IF ERRORLEVEL 255 GOTO :BREAK_PRESSED
IF ERRORLEVEL 5 GOTO :EXIT
IF ERRORLEVEL 4 GOTO :CYCLE_ALL
IF ERRORLEVEL 3 GOTO :DEMO3
IF ERRORLEVEL 2 GOTO :DEMO2
:DEMO1
DEMO1 /F ; don't clear screen on exit
GOTO :DEMO0
:DEMO2
DEMO2 /F ; don't clear screen on exit
GOTO :DEMO0
:DEMO3
DEMO3 /F ; don't clear screen on exit
GOTO :DEMO0
:BREAK_PRESSED
DEMO4 /T5 /F ; wait 5 seconds and don't clear screen on exit
GOTO :DEMO0
:CYCLE_ALL
CLS
ECHO This option will cycle through all three
ECHO demonstration screens in a continuous loop.
ECHO Each screen will be displayed for 5 seconds,
ECHO or until you press [Esc], whichever occurs first.
ECHO
ECHO To exit the loop and return to the main menu,
ECHO press [Ctrl-C] at any screen.
ECHO
ECHO Press any key to continue the demonstration . . .
ECHO
PAUSE > NUL
:CYCLE_LOOP
DEMO1 /T5 /F ; wait 5 seconds and don't clear screen on exit
IF ERRORLEVEL 255 GOTO :DEMO0
DEMO2 /T5 /F ; ditto
IF ERRORLEVEL 255 GOTO :DEMO0
DEMO3 /T5 /F ; ditto
IF ERRORLEVEL 255 GOTO :DEMO0
GOTO :CYCLE_LOOP
:EXIT
DEMO5 /N ; exit without any keypress, leaving image on the screen
ECHO